x86,hvm: cleanup hpet.c vcpu handling same as i8254.c/rtc.c
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 7 Jul 2009 13:08:47 +0000 (14:08 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 7 Jul 2009 13:08:47 +0000 (14:08 +0100)
commite82525a924fb96e5394d6d81ecdf57d38a706415
treea8268f06bfc3c968ab64a869072a2b7ec4367365
parent6e56d8aa4ad01fdee0b1cc93e01a28dfd76be53c
x86,hvm: cleanup hpet.c vcpu handling same as i8254.c/rtc.c

- introduce macros: domain_vhpet, vcpu_vhpet, vhpet_domain, vhpet_vcpu
- remove *vcpu field from struct HPETState
- modify guest_time_hpet() takes *vhpet instead of *vcpu as 1st
- argument

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
xen/arch/x86/hvm/hpet.c
xen/include/asm-x86/hvm/vpt.h